package com.share.common.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("kafka消息体")
public class KafkaMsg<T> implements Serializable {
    @ApiModelProperty("消息内容")
    private T data;

    @ApiModelProperty("消息类型")
    private String type;

    @ApiModelProperty("主题")
    private String topic;
}